package com.ym.medical.service.impl;

import com.ym.base.enums.FlagEnum;
import com.ym.core.utils.tkmybatis.BaseSVImpl;
import com.ym.medical.dao.CommentDao;
import com.ym.medical.domain.entity.CommentEntity;
import com.ym.medical.domain.vo.CommentVo;
import com.ym.medical.service.ICommentSV;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * ComputerName:LAPTOP-I6GKDIFQ
 * Author:admin
 * Date: 2019-07-23
 * Time: 14:08:34
 * 评论表服务实现类
 */
@Service
@Transactional( rollbackFor = Exception.class)
public class CommentSVImpl extends BaseSVImpl<CommentEntity,CommentDao> implements ICommentSV {

    @Override
    public List<CommentVo> selectByAnswerId(Long id) {
        return mapper.selectByAnswerId(id);
    }
}
